﻿#include "Myshared_ptr.h"
#include <iostream>
using namespace std;	
class DATE
{
public:
	
	~DATE();
	int a = 6;
	int b = 5;
	int c = 4;

	


};



DATE::~DATE()
{
	cout << "~DATE" << endl;
}

template<class T>
void DeleteArrayFunc(T* ptr)
{
	delete[] ptr;
}

void test()
{
	/*Ysz::shared_ptr<DATE> ptr1 (new DATE());
	cout << (*ptr1).a<< endl;
	cout << ptr1->c << endl;
	Ysz::shared_ptr<DATE> ptr2(ptr1);
	Ysz::shared_ptr<DATE> ptr3(new DATE());
	ptr3 = ptr2;*/
	Ysz::shared_ptr<DATE> ptr1(new DATE[5], DeleteArrayFunc<DATE>);



	
}



int main()
{

	test();
	return 0;
}